package com.youdoneed.community.group.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.youdoneed.community.group.entity.Forumuserapplyjoingrouprecord;
@Mapper
public interface ForumuserapplyjoingrouprecordMapper {
    int deleteByPrimaryKey(String userApplyJoinGroupRecordId);

    int insert(Forumuserapplyjoingrouprecord record);

    int insertSelective(Forumuserapplyjoingrouprecord record);

    Forumuserapplyjoingrouprecord selectByPrimaryKey(String userApplyJoinGroupRecordId);

    int updateByPrimaryKeySelective(Forumuserapplyjoingrouprecord record);

    int updateByPrimaryKey(Forumuserapplyjoingrouprecord record);
    
    Forumuserapplyjoingrouprecord selectByUseridAndForumGroupId(@Param("userId")String userId,@Param("forumgroupId")String forumgroupId);
    
    List<Forumuserapplyjoingrouprecord> getApplicationByGroupId(String forumgroupId);
    
    int countPeopleToBeAudited(String forumgroupId);
    
}